package com.yjhb.android.sbz.entity;

/**
 * 创建者 zx
 * 创建时间 2020/12/7 17:37
 */
public class VipInfo {
    public final static VipInfo VIP_100 = new VipInfo();
    public final static VipInfo VIP_0 = new VipInfo();
    public final static VipInfo VIP_1 = new VipInfo();
    public final static VipInfo VIP_2 = new VipInfo();
    public final static VipInfo VIP_3 = new VipInfo();
    static {

        VIP_0.setLevel(0);
        VIP_0.setName("普通用户");
        VIP_0.setTime(-1); //到期时间 -1为永不到期
        VIP_0.setServerCost(0.12f); //百分之12
        VIP_0.setTopDiscount(10); //首页置顶折扣，-1无折扣
//        VIP_0.setRecommendDiscount(-1); //置顶折扣
        VIP_0.setRechargeWithdrawHandlingFee(0.08f); //余额提现
        VIP_0.setIncomeWithdrawHandlingFee(0.01f); //任务收入提现
        VIP_0.setParallelTaskCount(2); //同时发布任务数
        VIP_0.setOldValue(0); //原价
        VIP_0.setNewValue(0); //现价


        VIP_100.setLevel(100);
        VIP_100.setName("体验会员（7天）");
        VIP_100.setTime(7); //到期时间 -1为永不到期
        VIP_100.setServerCost(0.10f); //百分之12
        VIP_100.setTopDiscount(8); //首页置顶折扣，-1无折扣
//        VIP_0.setRecommendDiscount(-1); //置顶折扣
        VIP_100.setRechargeWithdrawHandlingFee(0.08f); //余额提现
        VIP_100.setIncomeWithdrawHandlingFee(0.01f); //任务收入提现
        VIP_100.setParallelTaskCount(2); //同时发布任务数
        VIP_100.setOldValue(9.9f); //原价
        VIP_100.setNewValue(0.01f); //现价

        VIP_1.setLevel(1);
        VIP_1.setName("月度会员");
        VIP_1.setTime(30); //到期时间 单位天 -1为不到期
        VIP_1.setServerCost(0.10f); //发布任务服务费用
        VIP_1.setTopDiscount(8); //首页置顶折扣
//        VIP_1.setRecommendDiscount(5); //置顶折扣
        VIP_1.setRechargeWithdrawHandlingFee(0.05f); //余额提现
        VIP_1.setIncomeWithdrawHandlingFee(0.f); //任务收入提现
        VIP_1.setParallelTaskCount(8); //同时发布任务数
        VIP_1.setOldValue(88);
        VIP_1.setNewValue(38);

        VIP_2.setLevel(2);
        VIP_2.setName("季度会员");
        VIP_2.setTime(90); //到期时间 单位天 -1为不到期
        VIP_2.setServerCost(0.09f); //发布任务服务费用
        VIP_2.setTopDiscount(7f); //首页置顶折扣
//        VIP_2.setRecommendDiscount(4f); //置顶折扣
        VIP_2.setRechargeWithdrawHandlingFee(0.03f); //赏金余额提现
        VIP_2.setIncomeWithdrawHandlingFee(0.f); //任务收入提现
        VIP_2.setParallelTaskCount(16); //同时发布任务数
        VIP_2.setOldValue(298);
        VIP_2.setNewValue(98);

        VIP_3.setLevel(3);
        VIP_3.setName("年度会员");
        VIP_3.setTime(365); //到期时间 单位天 -1为不到期
        VIP_3.setServerCost(0.08f); //发布任务服务费用
        VIP_3.setTopDiscount(6f); //首页置顶折扣
//        VIP_3.setRecommendDiscount(3f); //置顶折扣
        VIP_3.setRechargeWithdrawHandlingFee(0.02f); //赏金余额提现
        VIP_3.setIncomeWithdrawHandlingFee(0.f); //任务收入提现
        VIP_3.setParallelTaskCount(-1); //同时发布任务数
        VIP_3.setOldValue(998);
        VIP_3.setNewValue(388);
    }


    private int level;

    /**
     * 名字
     */
    private String name;
    /**
     * 服务时长  单位，天
     */
    private int time;
    /**
     * 服务费用
     */
    private float serverCost;
    /**
     * 置顶折扣
     */
    private float topDiscount;
//    /**
//     * 置顶折扣
//     */
//    private float recommendDiscount;

    /**
     * 充值后提现手续费
     */
    private float rechargeWithdrawHandlingFee;

    /**
     * 收入提现手续费
     */
    private float incomeWithdrawHandlingFee;

    /**
     * 可同时发布任务数
     */
    private int parallelTaskCount;

    /**
     * 原格
     */
    private float oldValue;
    /**
     * 现价
     */
    private float newValue;


    public float getOldValue() {
        return oldValue;
    }

    public void setOldValue(float oldValue) {
        this.oldValue = oldValue;
    }

    public float getNewValue() {
        return newValue;
    }

    public void setNewValue(float newValue) {
        this.newValue = newValue;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public float getServerCost() {
        return serverCost;
    }

    public void setServerCost(float serverCost) {
        this.serverCost = serverCost;
    }

    public float getTopDiscount() {
        return topDiscount;
    }

    public void setTopDiscount(float topDiscount) {
        this.topDiscount = topDiscount;
    }

//    public float getRecommendDiscount() {
//        return recommendDiscount;
//    }
//
//    public void setRecommendDiscount(float recommendDiscount) {
//        this.recommendDiscount = recommendDiscount;
//    }

    public float getRechargeWithdrawHandlingFee() {
        return rechargeWithdrawHandlingFee;
    }

    public void setRechargeWithdrawHandlingFee(float rechargeWithdrawHandlingFee) {
        this.rechargeWithdrawHandlingFee = rechargeWithdrawHandlingFee;
    }

    public float getIncomeWithdrawHandlingFee() {
        return incomeWithdrawHandlingFee;
    }

    public void setIncomeWithdrawHandlingFee(float incomeWithdrawHandlingFee) {
        this.incomeWithdrawHandlingFee = incomeWithdrawHandlingFee;
    }

    public int getParallelTaskCount() {
        return parallelTaskCount;
    }

    public void setParallelTaskCount(int parallelTaskCount) {
        this.parallelTaskCount = parallelTaskCount;
    }
}
